package qc.common.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * EHS任务状态枚举
 *
 * @author QuCheng Tech
 * @since 2024/9/4
 */
@Getter
@AllArgsConstructor
public enum EhsTaskStatusEnum {
    //待执行、执行中、已完成、已终止/取消
    //TODO(1, "待执行"),//已创建或派发任务，任务未被接收
    //DOING(2, "执行中"),//任务已接收，在执行中
    //CANCELLED(4, "终止取消"),//已终止取消
    //COMPLETE(8, "已完成");
    
    ALL(0,"全部"),
    NO_DISPATCH(1,"未派单"),
    DOING(2, "执行中"),
    COMPLETE(4, "已完成"),
    CANCELLED(8, "终止/取消");

    @EnumValue
    private int index;
    private String name;
}
